<template>
  <div class="birthday">
    <div class="header" @click="myinfo">
      <van-icon class="left" name="arrow-left" />
      <span>编辑生日</span>
      <button>保存</button>
    </div>
    <div>
      <mt-field label="生日" placeholder="请输入生日" type="date" v-model="birthday"></mt-field>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        birthday: null
      }
    },
    methods: {
      myinfo() {
        this.$router.push("/myinfo")
      },
    },
  }
</script>

<style lang="scss" scoped>
  .header {
    height: 9vmin;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 5vmin;
    color: #000;

    button {
      border: none;
      color: gray;
      margin-right: 5px;
    }
  }
</style>